/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 禁用长按选中和复制 */
body {
  user-select: none;
  -webkit-user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
}

/* 移除默认列表样式 */
ul,
ol {
  list-style: none;
}

/* 图片相关样式 */
img {
  max-width: 100%;
  height: auto;
  border: none;
  vertical-align: middle;
}

/* 链接样式 */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  outline: none;
  -webkit-touch-callout: none; // 禁用长按弹出菜单
}

/* 表单元素重置 */
input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  outline: none;
}

/* 常用的布局工具类 */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 安全区域适配 */
.safe-area-inset {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}
